package cn.hairui.blog.service;

import cn.hairui.blog.entity.Viewrecord;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author laoganbu
 * @since 2020-04-28
 */
public interface ViewrecordService extends IService<Viewrecord> {

    /**
     * 根据文章编号获取访问次数
     *
     * @param id
     * @return
     */
    int countViewRecord(int id);
}
